import {request} from "../../request"

export function bjsp(loginData) {
  return request({
    url: '/goods'+'/'+loginData.id,
    method:'put',
    data:{...loginData}
  })
}

export function tjsp(loginData) {
  return request({
    url: '/goods',
    method: 'post',
    data: {
        ...loginData
    }
  })
}
export function shanchu(loginData) {
  return request({
    url: '/goods'+'/'+loginData,
    method:'delete'
  })
}
export function sphq(loginData) {
  return request({
    url: '/goods',
    method: 'get',
    params:{...loginData}
  })
}
export function sourequest(loginData) {
  return request({
    url: '/goods/'+loginData,
    method: 'get',
  })
}